#!/bin/bash
#export JAVA_HOME=/usr/local/java/jdk1.8.0_221
#export JRE=/usr/local/java/jdk1.8.0_221/jre
#export CLASSPATH=$JAVA_HOME/lib:$JRE/lib:.
#export PATH=$PATH:$JAVA_HOME/bin/:$JRE/bin
#export PATH=$JAVA_HOME/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
nohup java -jar ${jar.name}.jar >>/dev/null  2>&1 &
#记录进程号
echo $! > app.pid